<?php
		
			$AuctionTheme_show_main_menu = get_option('AuctionTheme_show_main_menu');
			if($AuctionTheme_show_main_menu != 'no'):
		?>
        <div class="content_super_div">
      	<div class="main-thing-menu main_wrapper_menu">
        
        
        <ul>
            <li class="padded_menu"><a href="<?php bloginfo('siteurl'); ?>" class="hm_cls"><?php _e('Home','AuctionTheme'); ?></a></li>
            <li><a href="<?php echo get_post_type_archive_link('auction'); ?>"><?php _e('All Auctions','AuctionTheme'); ?></a></li> 
            <li><a href="<?php echo AuctionTheme_adv_search_featured_ac(); ?>"><?php _e('All Featured Auctions','AuctionTheme'); ?></a></li> 
            <li><a href="<?php echo get_permalink(get_option('AuctionTheme_adv_search_id')); ?>"><?php _e('Advanced Search','AuctionTheme'); ?></a></li> 
            <li><a href="<?php echo get_permalink(get_option('AuctionTheme_all_cats_id')); ?>"><?php _e('Show All Categories','AuctionTheme'); ?></a></li> 
            <li><a href="<?php echo get_permalink(get_option('AuctionTheme_all_locs_id')); ?>"><?php _e('Show All Locations','AuctionTheme'); ?></a></li> 
            
              <?php
							
							$menu_name = 'primary-auction-main-header';

							if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_name ] ) ) {
							$menu = wp_get_nav_menu_object( $locations[ $menu_name ] );
						
							$menu_items = wp_get_nav_menu_items($menu->term_id);
					
						
							foreach ( (array) $menu_items as $key => $menu_item ) {
								$title = $menu_item->title;
								$url = $menu_item->url;
								if(!empty($title))
								echo '<li><a href="' . $url . '">' . $title . '</a></li>';
							}
								
							}
							
							
							?>
                            
                       
            </ul>
        
        
        </div> </div>  
        
        <?php	
		else:
		//--------
		
		
		
		endif;	?>